<?php

use Faker\Generator as Faker;

$factory->define(App\Model\Article::class, function (Faker $faker) {
    return [
        'title'   => $faker->sentence ,
        'content' => $faker->text ,
        'user_id' => mt_rand (1,20),
        'favorite_num'=>0,
        'zan_num'=>0,
    ];
});
